/*
 * InputManager.h
 *
 *  Created on: 23-07-2013
 *      Author: Jarek
 */

#ifndef INPUTMANAGER_H_
#define INPUTMANAGER_H_

#include "GlobalData.h"
#include "Input.h"
#include "EVector3.h"

class CameraLogic;

class InputManager {
public:

	bool 				isTouch;
	CameraLogic*	 	camera;

	float				distance;
	float 				horizontalAngle;
	float 				verticalAngle;

	Vector3<float>		at;
	Vector2<int>		touchStart;

	float 				rotationSensivity;
	float				movementSensivity;

public:
	InputManager(CameraLogic* camera);
	virtual ~InputManager();

	void 				onRun();
	void				handleInput(const ETime& time, const Input& input);
};

#endif /* INPUTMANAGER_H_ */
